package com.kaifamiao.month03.day0316;

public class ArrayListDemo2 {

    public static void main(String[] args) {
        ArrayListForUser al = new ArrayListForUser();
//        al.initial();
        User u = new User();
        u.name = "高洋";
        u.phone = "18829050445";
        u.password = "123456";
        al.add(u);
        User u1 = new User();
        u1.name = "杨洋";
        u1.phone = "1008611";
        u1.password = "123456";
        User u2 = new User();
        u2.name = "唯兮";
        u2.phone = "10086";
        u2.password = "123456";
        al.add(u);
        al.add(u1);
        al.add(u2);
        System.out.println(al.convert());
        System.out.println(al.index(u));
        System.out.println(al.remove(0));
        System.out.println(al.indexOf(1));
        System.out.println(al.count());
        System.out.println(al.convert());;
    }
}
